Skip to content

Support configurable deck page limit#2

Merged
walker1211 merged 1 commit into
mainfrom
deck/max-pages
Jun 5, 2026
Merged

Support configurable deck page limit#2
walker1211 merged 1 commit into
mainfrom
deck/max-pages

Conversation

@walker1211

Copy link
Copy Markdown
Owner

Summary

  • Add deck.max_pages with a default of 12 and a supported range of 3-18.
  • Pass the configured maximum page count into AI deck prompt generation and deck validation.
  • Allow preview and from-deck rendering flows to accept configured page limits.

Test plan

  • go test ./internal/config -run 'TestLoad(AppliesDefaultDeckConfig|KeepsExplicitDeckMaxPages|RejectsInvalidDeckMaxPages)' -count=1
  • go test ./internal/ai -run 'TestBuildDeckJSONUsesConfigured(MaxPages|Command)' -count=1
  • go test ./internal/app -run 'TestServiceGenerate(PreviewPassesMaxPagesToAIBuilder|PreviewAcceptsConfiguredMaxPages|FromDeckAcceptsConfiguredMaxPages)' -count=1
  • go test ./... -count=1
  • go build -o ./mark2note ./cmd/mark2note
  • Local XHS metadata smoke with deck.max_pages: 18

@walker1211
walker1211 merged commit 59554cc into main Jun 5, 2026
4 checks passed
@walker1211
walker1211 deleted the deck/max-pages branch June 5, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant